body {
    background-color: #f8f9fa;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.app-header {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.app-header h1 {
    font-weight: 600;
    color: #ff2442;
}
.card-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 8px;
    color: #ff2442;
}
.required-field::after {
    content: " *";
    color: #ff2442;
}
.btn-xhs {
    background-color: #ff2442;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
}
.btn-xhs:hover {
    background-color: #e61e3c;
    color: white;
}
.btn-outline-xhs {
    border-color: #ff2442;
    color: #ff2442;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
}
.btn-outline-xhs:hover {
    background-color: #ff2442;
    color: white;
}
.text-area-box {
    min-height: 100px;
}
.time-range-table {
    width: 100%;
    border-collapse: collapse;
}
.time-range-table th, .time-range-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
}
.time-range-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.form-check {
    margin-bottom: 0;
}
.alert-note {
    background-color: #f0f7ff;
    border-left: 4px solid #1890ff;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.option-tooltip {
    position: relative;
    display: inline-block;
}
.option-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}
.option-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.horizontal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.horizontal-options .form-check {
    margin-right: 10px;
    white-space: nowrap;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: center;
}
.form-row .form-label {
    min-width: 100px;
    margin-right: 15px;
    margin-bottom: 0;
}
.options-container {
    flex: 1;
}
.form-group-compact {
    margin-bottom: 1rem;
}
.compact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.compact-row .form-label {
    min-width: 80px;
    margin-bottom: 0;
}


.table-responsive {
    max-height: 600px; /* 限制最大高度 */
    overflow-y: auto; /* 垂直滚动 */
    border: 1px solid #dee2e6; /* 边框 */
}

/* 固定表头（可选） */
thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

/* 美化滚动条 */
.table-responsive::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* 定向包详情侧边栏样式 */
.package-sidebar {
    width: 350px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-header h4 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.sidebar-content {
    padding-right: 5px;
}

.package-detail-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.package-title {
    color: #ff2442;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section {
    margin-bottom: 12px;
}

.detail-section-title {
    font-weight: 500;
    color: #666;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.detail-subtitle {
    font-weight: 500;
    color: #888;
    font-size: 13px;
    margin: 8px 0 4px 0;
    display: flex;
    align-items: center;
}

.detail-subtitle i {
    margin-right: 6px;
    color: #ff2442;
}

.detail-section-title i {
    margin-right: 6px;
    color: #ff2442;
}

.detail-item {
    display: flex;
    margin-bottom: 6px;
    font-size: 13px;
}

.detail-label {
    font-weight: 500;
    color: #888;
    min-width: 60px;
    margin-right: 8px;
}

.detail-value {
    color: #666;
    flex: 1;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag-item {
    background-color: #f0f7ff;
    color: #1d5b96;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.crowd-pkg-item {
    background-color: #e0f7fa;  /* 浅薄荷色背景 */
    color: #006064;           /* 深青蓝色文字 */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 4px;
    border: 1px solid #b2ebf2; /* 浅薄荷边框 */
}

.interest-item {
    background-color: #fff7e6;
    color: #fa8c16;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 4px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.compact-item {
    background-color: #f6f6f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.expandable-section {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid #eee;
}

.toggle-btn {
    color: #1890ff;
    cursor: pointer;
    font-size: 12px;
    margin-left: 6px;
}

.toggle-btn:hover {
    text-decoration: underline;
}

/* 响应式布局 */
@media (max-width: 992px) {
    #app {
        flex-direction: column;
    }

    .app-container {
        max-width: 100% !important;
    }

    .package-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #dee2e6;
    }
}